package BehavioralMode.responsibility.askforleave;

public class Client {
    public static void main(String[] args) {
        GroupLeader groupLeader = new GroupLeader(3);
        DepartmentLeader departmentLeader = new DepartmentLeader(7);
        BossLeader bossLeader = new BossLeader(365);

        groupLeader.setNextNode(departmentLeader);
        departmentLeader.setNextNode(bossLeader);

        groupLeader.handingBusiness(7);
    }
}
